/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package czStvDpds.graphics3D;

/**
 *
 * @author divad
 */
public class SceneSettings {

    private boolean clearDepthOnRepaint = true;
    private boolean clearColorOnRepaint = true;
    private boolean clearDepthAfterRepaint = false;
    private boolean clearColorAfterRepaint = false;
    private boolean renderToTexture = false;
    private boolean sortTransparentObjects = false;
    private boolean sortNormalObjects = false;
    public static final int SORT_BY_Z_FROM_LESS = 1, SORT_BY_Z_FROM_GREATER = 2;
    private int transparentObjectsSortFunction = SceneSettings.SORT_BY_Z_FROM_GREATER;
    private int normalObjectsSortFunction = SceneSettings.SORT_BY_Z_FROM_LESS;

    public boolean isClearColorOnRepaint() {
        return clearColorOnRepaint;
    }

    public boolean isClearDepthOnRepaint() {
        return clearDepthOnRepaint;
    }

    public boolean isRenderToTexture() {
        return renderToTexture;
    }

    public void setClearColorOnRepaint(boolean clearColorOnRepaint) {
        this.clearColorOnRepaint = clearColorOnRepaint;
    }

    public void setClearDepthOnRepaint(boolean clearDepthOnRepaint) {
        this.clearDepthOnRepaint = clearDepthOnRepaint;
    }

    public void setRenderToTexture(boolean renderToTexture) {
        this.renderToTexture = renderToTexture;
    }

    public boolean isClearColorAfterRepaint() {
        return clearColorAfterRepaint;
    }

    public boolean isClearDepthAfterRepaint() {
        return clearDepthAfterRepaint;
    }

    public void setClearColorAfterRepaint(boolean clearColorAfterRepaint) {
        this.clearColorAfterRepaint = clearColorAfterRepaint;
    }

    public void setClearDepthAfterRepaint(boolean clearDepthAfterRepaint) {
        this.clearDepthAfterRepaint = clearDepthAfterRepaint;
    }

    public boolean isSortTransparentObjects() {
        return sortTransparentObjects;
    }

    public int getTransparentObjectsSortFunction() {
        return transparentObjectsSortFunction;
    }

    public void setSortTransparentObjects(boolean sortTransparentObjects) {
        this.sortTransparentObjects = sortTransparentObjects;
    }

    public void setTransparentObjectsSortFunction(int transparentObjectsSortFunction) {
        this.transparentObjectsSortFunction = transparentObjectsSortFunction;
    }

    public int getNormalObjectsSortFunction() {
        return normalObjectsSortFunction;
    }

    public boolean isSortNormalObjects() {
        return sortNormalObjects;
    }

    public void setNormalObjectsSortFunction(int normalObjectsSortFunction) {
        this.normalObjectsSortFunction = normalObjectsSortFunction;
    }

    public void setSortNormalObjects(boolean sortNormalObjects) {
        this.sortNormalObjects = sortNormalObjects;
    }
}
